﻿@using SlamDunk.CMS.Model
@using SlamDunk.CMS.Model.DataModel
@using SlamDunk.CMS.Model.ViewModel
@{
    Article article = Model;
    ChannelView currentChannel = article.Channel.ToViewModel();
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@article.Title</title>
    @Include("Head", Model)
    <script type="text/javascript" src="/ckplayer/ckplayer.js" charset="utf-8"></script>
    <script type="text/javascript">
        $(function () {
            var flashvars = {
                f: '@article.SubTitle',
                c: 0,
                b: 1
            };
            var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent' };
            CKobject.embedSWF('/ckplayer/ckplayer.swf', 'a1', 'ckplayer_a1', '750', '500', flashvars, params);
            //调用html5播放器
            var video = ['http://movie.ks.js.cn/flv/other/1_0.mp4->video/mp4', 'http://www.ckplayer.com/webm/0.webm->video/webm', 'http://www.ckplayer.com/webm/0.ogv->video/ogg'];
            var support = ['iPad', 'iPhone', 'ios', 'android+false', 'msie10+false'];
            CKobject.embedHTML5('a1', 'ckplayer_a1', 600, 400, video, flashvars, support);
        });
    </script>

</head>
<body>
    @Include("Top", Model)
    @Include("SubBanner", Model)
    <div class="Sub_Middlecon">
        <div class="Sub_Middle">
            @Include("Left", Model)
            <div class="SubMid_R">
                <div class="SubMid_R1">
                    <span class="SubMid_R1title">@currentChannel.ChannelName</span><span class="SubMid_R1tip"></span>
                    <span class="SubMid_R1path">网站首页：<a href="@currentChannel.Url">@currentChannel.ChannelName</a> - <span class="SubMid_R1current">@currentChannel.ChannelName</span></span>
                </div>

                <div class="SubMid_R2">
                    <div class="SubMid_Picdetailcon">
                        <div class="SubMid_Article_title">@article.Title</div>
                        <div class="SubMid_Article_tip">
                            <span class="SubMid_Article_tip1">作者：</span><span class="SubMid_Article_tip2">@article.Author </span>
                            <span class="SubMid_Article_tip1">来源：</span><span class="SubMid_Article_tip2">@article.Source</span>
                            <span class="SubMid_Article_tip1">发布时间：</span><span class="SubMid_Article_tip2">@article.AddTime </span>
                            <!--<span class="SubMid_Article_tip1">点击：</span><span class="SubMid_Article_tip2">396</span>-->
                        </div>
                        <!--播放视频区域-->
                        <div id="a1" class="Content_game163"></div>
                        @article.Content
                    </div>
                </div>

                <div class="SubMid_R3">
                    <div class="SubMid_R3con">
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    @Include("Foot", Model)
</body>
</html>
